<?php

namespace App\Http\Controllers;

use OSS\OssClient;
use OSS\Core\OssException;

class OssClientController
{
    public function __construct()
    {
        $accessKeyId = "LTAIAsNlMgJ7BPK8";
        $accessKeySecret = "8gkA9P9Z8iwSLJmQ7MnXht8kJ2PtsT";
        $endpoint = "zhurongpeng.oss-cn-qingdao.aliyuncs.com";

        try {
            $ossClient = new OssClient($accessKeyId, $accessKeySecret, $endpoint, true);
        } catch (OssException $e) {
            print $e->getMessage();
        }
    }

}
